package com.imooc.disruptor.heigh.chain;

import com.lmax.disruptor.EventHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * @author yqc 2018/10/9
 */
@Slf4j
public class Handler5 implements EventHandler<Trade> {
    @Override
    public void onEvent(Trade event, long sequence, boolean endOfBatch) throws Exception {
        log.info("handler 5 : get price: {}", event.getPrice());
        event.setPrice(event.getPrice() + 3.0);
    }
}
